﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace ShivamEMR.Model.Domain.CRMDomain
{
  public class Question
    {
        #region Properties
        public Guid ID { get; set; }
        public string Title { get; set; }
        public string QuestionBody { get; set; }
        public string Notes { get; set; } 
        #endregion

        #region ForeignKeyProperties
        public int QuestionGroupID { get; set; }
        public int QuestionTypeID { get; set; }
        public int QuestionStatusID { get; set; } 
        #endregion

        #region NavigationalProperties
      [ForeignKey("QuestionGroupID")]
        public virtual QuestionGroup Group { get; set; }
      [ForeignKey("QuestionTypeID")]
        public virtual QuestionType Type { get; set; }
      [ForeignKey("QuestionStatusID")]
        public virtual QuestionStatus Status { get; set; }
        public virtual ICollection<QuestionOption> Options { get; set; }
        #endregion

    }
}
